<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <!--
  Copyright (c) 2010 The Native Client Authors. All rights reserved.
  Use of this source code is governed by a BSD-style license that can be
  found in the LICENSE file.
  -->
  <head>
    <title>Interactive Cube Example</title>
    <script type="text/javascript">
      // Provide the tumbler namespace
      tumbler = {};
    </script>
    <script type="text/javascript" src="dragger.js"></script>
    <script type="text/javascript" src="tumbler.js"></script>
    <script type="text/javascript" src="vector3.js"></script>
    <script type="text/javascript" src="trackball.js"></script>
  </head>
    <body id="bodyId">
    <h1>Interactive Cube Example</h1>
    <p>
      The Native Client module executed in this page draws a 3D cube
      and allows you to rotate it using a virtual trackball method.
    </p>
    <!-- For development, use a #develop location, which loads the develop
    version of the module.
    -->
    <div id="tumbler_content"></div>
    <script type="text/javascript">
      // This function is called when the tumbler module is loaded.
      function moduleDidLoad() {
        var module =
            document.getElementById(tumbler.Application.TUMBLER_MODULE_NAME);
        tumbler.application.moduleDidLoad(module);
      }

      tumbler.application = new tumbler.Application();
      tumbler.application.run('tumbler_content');
    </script>
  </body>
</HTML>
